package cn.sunshine.org.domain;

import cn.sunshine.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.net.ssl.SSLSession;
import java.util.ArrayList;
import java.util.List;


/**
* @Description: Department实体类
* @Author: Mr.Jiang
* @Version: 1.0
* @Date:  2022/6/21 17:10
*/

@Data
public class Department extends BaseDomain {

    // 部门编号
    private String sn;
    // 部门名称
    private String name;
    // 上级部门路径
    private String dirPath;
    // 状态 1启用，0禁用
    private Integer state;
    // 部门管理员
    private Long managerId;
    // 上级部门Id
    private Long parentId;
    // 部门负责人
    private Employee manager;
    // 上级部门
    private Department parent;
    // 子部门树
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();


}
